import React from 'react';
import { Form, Select } from 'antd';

const { Option } = Select;
//  适用业务组件
const BusinessSection = ({ selectedTag, onTagChange, form }) => {
  return (
    <div className="section">
      <h3 className="section-title">适用业务</h3>
      <Form.Item
        name="tag"
        label="适用业务"
        rules={[{ required: true, message: '请选择业务' }]}
      >
        <Select
          value={selectedTag}
          onChange={(value) => {
            onTagChange(value);
            form.setFieldsValue({ tag: value });
          }}
          style={{ width: '50%' }}
        >
          <Option value="对象存储业务">对象存储业务</Option>
          {/* 可以添加更多选项 */}
        </Select>
      </Form.Item>
    </div>
  );
};

export default BusinessSection;